﻿using cludg.Web.Core.Menu;

namespace cludg.Web.Menu
{
	public class NavigationMenuProvider : INavigationMenuProvider
	{
		public void FillMenu(MenuDefinition definition)
		{
			definition.Items.AddRange(
				new[] {
					new MenuItemDefinition
					{
						Id = "Index",
						Caption = "Главная",
						Index = 10,
						ControllerName = "Home",
						ActionName = "Index",
						PermissionName = null
					},
					new MenuItemDefinition
					{
						Id = "AddOffer",
						Caption = "Предложить",
						Index = 20,
						ControllerName = "Offer",
						ActionName = "Add",
						PermissionName = "AddOffer"
					},
					new MenuItemDefinition
					{
						Id = "AddStory",
						Caption = "Написать",
						Index = 30,
						ControllerName = "Story",
						ActionName = "Add",
						PermissionName = "AddStory"
					},
					new MenuItemDefinition
					{
						Id = "Offers",
						Caption = "Предложения",
						Index = 40,
						ControllerName = "Offer",
						ActionName = "List",
						PermissionName = "ViewOffers"
					},
					new MenuItemDefinition
					{
						Id = "About",
						Caption = "О нас",
						Index = 50,
						ControllerName = "Home",
						ActionName = "About",
						PermissionName = null
					}
				});
		}
	}
}